﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Produce.Domain.Entities
{
    /// <summary>
    /// 生产日期表
    /// </summary>
    [SugarTable("production_date")]
    public class ProductionDate : BaseEntity
    {
        /// <summary>
        /// 日期
        /// </summary>
        [SugarColumn(ColumnName = "Date", IsNullable = true)]
        public DateTime? Date { get; set; }

        /// <summary>
        /// 类型：0-休息，1-上班
        /// </summary>
        [SugarColumn(ColumnName = "Type", IsNullable = true)]
        public int? Type { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [SugarColumn(ColumnName = "Remark", IsNullable = true, Length = 500)]
        public string? Remark { get; set; }

        /// <summary>
        /// 客户ID（人员ID），关联到BasicData.CustomerModel
        /// </summary>
        [SugarColumn(ColumnName = "CUSTOMER_ID", IsNullable = true)]
        public long? CustomerId { get; set; }
    }
}
